Release 10.1A: OpenEdge Development:
Programming Interfaces
Using MEMPTR to reference external data
The Progress
MEMPTRdata type provides a means to access (unmarshal and marshal) data that you plan to pass to and from other application and system environments using the following EPIs:A
MEMPTRvariable references a region of memory set to a size that you specify. Once you declare and initialize theMEMPTRvariable to the specified size, you can read and modify the memory region it references as follows:
- Read and write data values to specified locations within the
MEMPTRregion. These values can contain different numbers of bytes, depending on a data type that you specify for the value read or written.- Read and write individual bits within a Progress
INTEGERvariable, whose value you can also read and write to aMEMPTRregion.- Assign values between two
MEMPTRvariables and between aMEMPTRvariable and aRAWvariable (or field).- Indicate the byte order of data you have written so that a target system can interpret the
MEMPTRdata appropriately. This is primarily useful for exchangingMEMPTRdata between different system environments using sockets.Together, these features allow you to store and access data aggregates (structures), including complete OpenEdge database records.
The following sections describe the general capabilities of
MEMPTRdata, including:For more information on using
MEMPTRfor a specific EPI, see:
- Shared libraries — The "UNIX shared library and Windows DLL support" section, then Chapter 12, " Shared Library and DLL Support.".
- Sockets — The "Sockets" section, then Chapter 17, " Sockets."
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |